package com.app.biz.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.app.biz.DevUserBiz;
import com.app.dao.DevUserDao;
import com.app.entity.DevUser;

@Service("devUserBiz")
public class DevUserBizImpl implements DevUserBiz {
	@Autowired  //依赖注入]
	private DevUserDao devUserDao;

	@Transactional(propagation=Propagation.REQUIRED)
	public DevUser checkDevUserLogin(String devName, String devPassword) {
		// TODO Auto-generated method stub
		return devUserDao.checkDevUserLogin(devName, devPassword);
	}

	public DevUser getByid(int id) {
		// TODO Auto-generated method stub
		return devUserDao.getByid(id);
	}
	
	
	

	

}
